/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package cl.ventas.beans;

import cl.ventas.modelo.DetalleVenta;
import cl.ventas.modelo.dao.DetalleVentaDao;
import java.util.LinkedList;
import java.util.List;



/**
 *
 * @author RITTER
 */
public class DetalleVentaBean extends DetalleVenta{
    
    
     private DetalleVentaDao detalleVentaDao = new DetalleVentaDao();
     
    
     public List<DetalleVenta> findAll() {
        return detalleVentaDao.findAll();
    }
     public List<DetalleVenta> findById() {
        List<DetalleVenta> listaDetalle = new LinkedList<DetalleVenta>();
        listaDetalle = detalleVentaDao.findById(Codigo);
        
        return listaDetalle;
    }
}
